package xmu.crms.exception;

/**
 * @author badcode
 * @date 2018/01/01
 */
public class CourseNotFoundException extends Exception {

	private static final long serialVersionUID = 1L;
	
	private String errorCode;

	/**
	 * 课程未找到异常.
	 */
	public CourseNotFoundException() {
		super();
	}

	/**
	 * 课程未找到异常.
	 * @param message
	 */
	public CourseNotFoundException(String message) {
		super(message);
	}

	/**
	 * 课程未找到异常.
	 * @param errorCode
	 * @param message
	 */
	public CourseNotFoundException(String errorCode, String message) {
		super(message);
		this.errorCode=errorCode;
	}

	/**
	 * 课程未找到异常.
	 * @param errorCode
	 * @param message
	 * @param cause
	 */
	public CourseNotFoundException(String errorCode, String message, Throwable cause) {
		super(message,cause);
		this.errorCode=errorCode;
	}

	/**
	 * 课程未找到异常.
	 * @param message
	 * @param cause
	 */
	public CourseNotFoundException(String message, Throwable cause) {
		super(cause);
	}

	/**
	 * 课程未找到异常.
	 * @return
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * 课程未找到异常.
	 * @param errorCode
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
